package com.easy.secret.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

/**
 * @ProjectName: esay-secret-server
 * @Package: com.easy.secret.config
 * @ClassName: AutoSecureConfiguration
 * @Description: java类作用描述
 * @Author: wangjc
 * @CreateDate: 2023/12/8
 * @UpdateUser: wangjc
 * @UpdateDate: 2023/12/8
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */

@Configuration
@ConditionalOnProperty(
        name = {"sm.flag"},
        havingValue = "true"
)
public class AutoSecureConfiguration {

//    @Bean("secureUtils")
//    @ConditionalOnClass(SecureProperties.class)
//    public SecureUtils secureUtils(@Autowired SecureProperties properties) {
//        return SecureUtils.getInstance(properties);
//    }
}
